let $ = layui.jquery;
let jQuery=$;
let SettingData = {};//配置文件参数
let SeleteData = {};//筛选参数
let current =1;
let raw = '';//排序
let InitData={};
let table_config = {
    "header": {
        "button": [
            {
                "title": "新增",
                "icon": "icon-add-bold",
                "btn_class": "btn_theme_1",
                "is_drop": 2,
                "type": "window",
                "url": "/admin/user/add/",
                "where": null,
                "width": 0,
                "height": 0,
                "node": "admin:user:add"
            }
        ],
        "tab": [],
        "search": {
            "datetime": [],
            "like": "账号|姓名|手机号"
        },
        "sum": []
    },
    "left": {
        "status": 2,
        "title": null,
        "options_id": null,
        "key_field": "value",
        "show_field": "label",
        "field": "id",
        "type": 1,
        "url": {
            "title": "",
            "list": "/common/options/leftlists/?num=",
            "add": "",
            "edit": "",
            "delete": "",
            "width": "",
            "height": ""
        }
    },
    "source": "admin_role,department_list",
    "table": {
        "button": [
            {
                "title": "修改",
                "icon": "icon-edit",
                "btn_class": "btn_theme_1",
                "is_drop": 2,
                "type": "window",
                "url": "/admin/user/edit/?id={id}",
                "where": null,
                "width": 0,
                "height": 0,
                "node": "admin:user:edit"
            },
            {
                "title": "删除",
                "icon": "icon-ashbin",
                "btn_class": "btn_theme_2",
                "is_drop": 2,
                "type": "ajax",
                "url": "/admin/user/delete/?id={id}",
                "where": null,
                "width": 0,
                "height": 0,
                "node": "admin:user:delete"
            }
        ],
        "style": 1,
        "parent_id": "parent_id",
        "parent_name": "title",
        "limit": 30,
        "tab_sum": "",
        "page": true,
        "elem": "datatable",
        "height": "full-85",
        "update": "/admin/user/update_field/",
        "url": "/admin/user/index/",
        "cols": [
            {
                "id": "1721568512_9_0",
                "field": "user",
                "title": "账号"
            },
            {
                "id": "1721568513_9_1",
                "field": "name",
                "title": "姓名"
            },
            {
                "id": "1721568513_9_2",
                "field": "phone",
                "title": "手机号"
            },
            {
                "id": "1721568515_9_3",
                "field": "role_ids",
                "title": "所属角色",
                "options": "admin_role"
            },
            {
                "id": "1721568515_9_4",
                "field": "department_ids",
                "title": "所属组织",
                "options": "department_list"
            },
            {
                "id": "1721568518_9_5",
                "field": "is_super",
                "title": "超级管理员",
                "update": "switch"
            },
            {
                "id": "1721568526_9_9",
                "field": "status",
                "title": "是否启用",
                "update": "switch"
            },
            {
                "id": "1721568529_9_10",
                "field": "notes",
                "title": "备注"
            },
            {
                "id": "1721568524_9_8",
                "field": "create_id",
                "title": "新增人"
            },
            {
                "id": "1721568523_9_7",
                "field": "create_time",
                "title": "新增时间",
                "width": "160",
                "minWidth": "160"
            },
            {
                "id": "1721875693_9_10",
                "hide": 1,
                "field": "tenant_id",
                "title": "租户ID"
            }
        ]
    }
};
let form_config = {
    detail:'/admin/user/detail/',
    add:'/admin/user/add/',
    edit:'/admin/user/edit/',
    data:{
    "user": "",
    "name": "",
    "avatar": "",
    "phone": "",
    "upass": "",
    "path_id": "",
    "role_ids": "",
    "department_ids": "",
    "notes": ""
},
    label_width:'',
    form_label:'form_right',
    onclick:[],
};
